package com.todo.strategy.online.infrastructure.repository;


import com.todo.strategy.online.infrastructure.entity.po.WantSetPO;

import java.util.List;

/**
 * (WantSet)表服务接口
 *
 * @author zhangwenxiang
 * @since 2024-03-04 21:10:04
 */
public interface WantSetRepository {
    /**
     * 新增我想去集合
     *
     * @param wantSetPO
     * @return
     */
    Boolean insertWantSetPO(WantSetPO wantSetPO);

    /**
     * 根据主键id更新我想去Id
     *
     * @param wantSetPO
     * @return
     */
    Boolean updateWantSetPOById(WantSetPO wantSetPO);

    /**
     * 根据主键id删除我想去集合
     *
     * @param id
     * @return
     */
    Boolean removeWantSetPOById(Long id);

    /**
     * 根据主键id查询我想去集合
     *
     * @param id
     * @return
     */
    WantSetPO queryWantSetPOById(Long id);

    /**
     * 根据用户id查询我想去集合
     *
     * @param userId
     * @return
     */
    List<WantSetPO> queryWantSetPOByUserId(Long userId);


}
